﻿<Window x:Class="MVVMBasedDialogs.OrderView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:MVVMBasedDialogs.ViewModel"
        Title="OrderView" Height="300" Width="476">
    <Window.DataContext>
        <vm:OrderViewModel />
    </Window.DataContext>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.25*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Label Content="Customer" Height="23" HorizontalAlignment="Left"
               Margin="7,12,0,0" Name="lblCustomer" VerticalAlignment="Top" 
               Grid.Column="0" Grid.Row="0" Width="100" />
        <StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="0">
            <ComboBox Margin="2,12,0,0" Name="cmbCustomer" 
                  DisplayMemberPath="LastName" Width="315"
                  ItemsSource="{Binding Customers}" 
                  SelectedItem="{Binding SelectedCustomer}" />
            <Button Content="..." Command="{Binding ShowCustomerDetailsCommand}"
                Margin="2,12,0,0" Name="btnEditCustomer"
                    HorizontalAlignment="Right" Width="41" />
        </StackPanel>        
        <Border BorderBrush="Silver" Grid.ColumnSpan="2" 
                 Grid.Row="1" Background="LightGray">
            <TextBlock Text="Order Details" HorizontalAlignment="Center" 
                       VerticalAlignment="Center" />
        </Border>
    </Grid>
</Window>
